<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
  <!-- 这个页面中不要包含有js!!! -->
  </head>  
  <body>
  	<!-- 验证还是jquery-validation好用，这里省事没用 -->
	<form class="auform" id="roomForm" method="post">
		<input type="hidden" name="roomId" id="roomId">
		<table class="autable">
		<tr>
				<td class="autd1">酒店名：</td>
				<td class="autd2"><input name="hotelId" id="hotelId" class="txt" style="width:150px;" required="true" onclick="hoteladd();"/><span class="red">*</span></td>
				<td class="autd1">房间名：</td>
				<td class="autd2"><input name="roomName" style="width:150px" validType="length[2,30]" class="easyui-validatebox txt" required="true"><span class="red">*</span></td>
			</tr>
			
			<tr>
			<td class="autd1">单   位：</td>
				<td class="autd2"><select class="easyui-combobox" name="unit" panelHeight="auto" style="width:150px;" required="true" editable="false">
						<option value="-1">请选择</option>
						<option value="房">房</option>
						<option value="人">人</option>
						<option value="张">张</option>
						<option value="分钟">分钟</option>
						<option value="小时">小时</option>
					</select><span class="red">*</span></td>
				<td class="autd1">房间类型：</td>
				<td class="autd2">
					<select class="easyui-combobox" name="roomType" panelHeight="auto" style="width:150px;" required="true" editable="false">
						<option value="-1">请选择</option>
						<option value="1">标准间</option>
						<option value="2">双人间</option>
						<option value="3">三人间</option>
						<option value="4">套间</option>
						<option value="5">其他</option>
					</select><span class="red">*</span>
				</td>
			</tr>
			<tr>
				<td class="autd1">成本价：</td>
				<td class="autd2"><input name="costPrice" style="width:150px" validType="number" class="easyui-validatebox txt" required="true"><span class="red">*</span></td>
			<td class="autd1">卖出价：</td>
				<td class="autd2"><input name="sellPrice" style="width:150px" validType="number" class="easyui-validatebox txt" required="true"><span class="red">*</span></td>
			</tr>
			
			<tr>
				<td class="autd1">开始时间：</td>
				<td class="autd2"><input name="beginDate"  required="true" style="width: 150px;" class="Wdate txt" onClick="WdatePicker()"><span class="red">*</span></td>
			<td class="autd1">结束时间：</td>
				<td class="autd2"><input name="endDate"  required="true" style="width:150px;" class="Wdate txt" onClick="WdatePicker()"><span class="red">*</span></td>
			</tr>
			
			<tr>
				<td class="autd1">备注：</td>
				<td class="autd2" colspan="3"><textarea name="remark" class="txtarea"></textarea></td>
			</tr>
			<tr>
				<td class="autd3" colspan="2">
					<a href="#" id="btn-back" onclick="$('#MyPopWindow').window('close');" class="easyui-linkbutton" iconCls="icon-cancel">取消</a>
					
				</td>
				<td class="autd3" colspan="2">
					
					<a href="#" id="btn-add" onclick="addOrUpdateRoom('${param.update}');" class="easyui-linkbutton" iconCls="icon-save">保存</a>
				</td>
			</tr>
		</table>
	</form>
  </body>
</html>
